<ng-container *ngrxLet="viewer$ as viewer">
  <nz-spin [nzSpinning]="isSubmitting">
    <button
      *ngIf="viewer.canModerate"
      nzType="primary"
      nzSize="large"
      nz-button
      (click)="moderate(evidenceStatuses.Accepted)"
      nz-tooltip
      [nzTooltipTrigger]="viewer.mostRecentOrg ? 'hover' : null"
      [nzTooltipTitle]="'For ' + viewer.mostRecentOrg?.name">
      Accept {{ entityType }}
    </button>
    &nbsp;
    <button
      nzDanger
      nzType="primary"
      nzSize="large"
      nz-button
      (click)="moderate(evidenceStatuses.Rejected)"
      nz-tooltip
      [nzTooltipTrigger]="viewer.mostRecentOrg ? 'hover' : null"
      [nzTooltipTitle]="'For ' + viewer.mostRecentOrg?.name">
      Reject {{ entityType }}
    </button>
  </nz-spin>
</ng-container>
